package com.zcoj.service;


import com.zcoj.pojo.Vo.RankVo;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.Cacheable;

import java.util.List;

@CacheConfig(cacheNames = "RankService")
public interface RankService {

    @Cacheable(key = "'getAllRank'")
    List<RankVo> getAllRank();



    @Cacheable(key = "'getRecentWeekRank'")
    List<RankVo> getRecentWeekRank();
    public void calculateOiRank();
}
